//
//  PopoverSelectionViewController.h
//  ICrEAM
//
//  Created by FoREVer_SaD on 16/11/9.
//  Copyright © 2016年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, PopoverSelectionViewShowType) {
    PopoverSelectionViewShowTypeTable = 1,
    PopoverSelectionViewShowTypeCollection = 2,
};

@protocol PopoverSelectionViewControllerDelegate <NSObject>

- (void)getSelectedTitle:(NSString *)string;
@optional
- (void)didSelectDataAtIndex:(NSInteger)index;

@end

@interface PopoverSelectionViewController : UIViewController

@property (nonatomic, assign) CGFloat displayWidth;

@property (nonatomic, assign) CGFloat displayHeight;

@property (nonatomic, strong) NSMutableArray *dataArray;

@property (nonatomic, weak) id<PopoverSelectionViewControllerDelegate> delegate;

@property (nonatomic, assign) PopoverSelectionViewShowType showType;

//是否多选
@property (nonatomic, assign) BOOL isMultiSelect;

@property (nonatomic, strong) NSMutableString *selectedStr;

@end


#pragma TableViewCell

@interface PopoverSelectionTableViewCell : UITableViewCell

@property (nonatomic, strong) NSString *title;

@end


#pragma CollectionViewCell
@interface PopoverSelectionCollectionViewCell : UICollectionViewCell

@property (nonatomic, strong) NSString *title;

@end
